package tk.mynoteapp.dev.other.eliminateifelse.right.responsibility;

import org.springframework.stereotype.Service;

/**
 * 具体处理者
 */
@Service
public class AliPayHandler extends PayHandler {
    @Override
    public void pay(String payCode) {
        if ("ali".equals(payCode)) {
            System.out.println("===发起支付宝支付");
        } else {
            getNext().pay(payCode);
        }
    }
}
